package pageObject;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class SearchResult {

	private WebDriver driver;
	
	public SearchResult(WebDriver driver){
		this.driver = driver;
	}
	
	public PostFreeAd postFreeAd(){
		driver.findElement(By.xpath("//div[@class = 'header_post_ad_button yellow']")).click();
		
		return new PostFreeAd(driver);
		
	}
	
	public CreateFreeAlrt createFreeAlrt(){
		driver.findElement(By.id("")).click();
		
		return new CreateFreeAlrt(driver);
	}
}
